package com.dmzapp.cashoffer.receiver;

import com.dmzapp.cashoffer.service.GetNotifyTask;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class TaskNotifyReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals("GetTask")){
            Toast.makeText(context, "short alarm", Toast.LENGTH_LONG).show();
            new Thread(new GetNotifyTask(context)).start();
        }
    }

}
